package descarte.com.br.descarte.Bean;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;

import java.util.Collection;

/**
 * Created by jvba on 22/03/2015.
 */

@DatabaseTable(tableName="fornecedor")
public class Fornecedor {

    @DatabaseField(id=true,dataType = DataType.LONG)
    private long id;

    @DatabaseField
    private String nome;

    @DatabaseField
    private String senha;

    @DatabaseField
    private String email;

    @ForeignCollectionField
    private Collection<Residuo> residuos;

    public Fornecedor(){
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public String getSenha() {
        return senha;
    }

    public void setSenha(String senha) {
        this.senha = senha;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Collection<Residuo> getResiduos() {
        return residuos;
    }

    public void setResiduos(Collection<Residuo> residuos) {
        this.residuos = residuos;
    }
}
